- form_tag({ :action => "mobs", :action => :update }, { :method => :put }) do
  = error_messages_for("mob")
  %table
    %tr
      %td Name
      %td= text_field("mob", "name", { :size => 40 })
    %tr
      %td
      %td= submit_tag("Update")

%br

%h3 Loot table
- form_tag(:controller => "mobs", :action => :add_item_to_loot_table, :id => @mob.id) do
  = error_messages_for("loot_table")
  %table
    - @mob.loot_table.items.each do |i|
      %tr
        %td= i.name
    %tr
      %td= collection_select("item", "item_id", @items, "id", "name")
      %td= submit_tag("Add item")
